package com.t174.car.dao;

import com.t174.car.entity.GuestsCar;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GuestsCarDao {
    /**
     * 获取用户车辆
     * @param id
     * @return
     */
    public List<GuestsCar> getGuestsCar(int id);

    /**
     * 添加用户的车俩
     * @param guestsCar
     * @return
     */
    public int addCar(GuestsCar guestsCar);

    /**
     * 删除车辆
     * @param id
     * @return
     */
    public int delCar(int id);
    /**
     * 修改车辆
     * @param guestsCar
     * @return
     */
    public int upCar(GuestsCar guestsCar);

    /**
     * 根据编号查找车辆
     * @param id
     * @param gid
     * @return
     */
    public GuestsCar getCarById(@Param("id") int id,@Param("gid") int gid);
}
